package com.iaz.tech.tools.uml.file.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.iaz.tech.tools.uml.IUMLNeuronAble;
import com.iaz.tech.tools.uml.structural.classstruct.impl.NeuronParameterStruct;
/**
 * 神经元参数加载器
 */
public class NeuronParameterLoader extends NeuronParameterStructLoader {
    /**
     * 日志
     */
	private final static Logger logger = (Logger) LoggerFactory.getLogger(NeuronParameterLoader.class);
    
    @Override
    public NeuronParameterStruct toParameterStruct(IUMLNeuronAble clazz) {
        if (clazz == null) {
            throw new IllegalArgumentException("clazz 不能为空");
        }
        if (!(clazz instanceof NeuronParameterStruct)){
            throw new IllegalArgumentException("clazz 必须是 NeuronParameterStruct 类型");
        } 
        return (NeuronParameterStruct) clazz;
    }
}
